package com.mxdx.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * 启动类,程序入口
 * 
 * @author wangyuan
 * @since 2016-11-24 11:32
 */
@EnableWebMvc
@SpringBootApplication
@EnableCaching
@ImportResource("classpath:spring-config-center.xml")
public class Application extends WebMvcConfigurerAdapter {

    static {
        System.setProperty("log4j.configurationFile", "config/log4j2.xml");
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
